package com.burst.reptile.modular.web.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.burst.reptile.framework.web.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author wujin
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zp_banner")
public class ZpBanner extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "banner_id", type = IdType.AUTO)
    private Integer bannerId;

    /**
     * 图片url
     */
    @NotBlank(message = "图片链接不能为空")
    @Size(min = 0, max = 255, message = "图片链接长度不能超过255个字符")
    private String url;

    /**
     * 排序号
     */
    @NotNull(message = "排序号不能为空")
    private Integer bannerSort;

    /**
     * 跳转地址
     */
    private String bannerHref;
    
    /**
     * 显示状态 "0" 显示 "1" 隐藏
     */
    private String bannerStatus;

}

